//
//  RHMePlantInfoModel.h
//  RuiHeApp
//
//  Created by Yan Chen on 2025/1/4.
//

#import "BaseModel.h"

NS_ASSUME_NONNULL_BEGIN
@class RHMeOptionTypeModel,RHMeSystemModel,RHDeviceModel;
@interface RHMePlantInfoModel : BaseModel
@property (nonatomic ,copy) NSString *title;

@property (nonatomic ,copy) NSString *content;

@property (nonatomic ,copy) NSString *unit;

@property (nonatomic ,copy) NSString *placeHolder;

@property (nonatomic ,copy) NSString *tag;

@property (nonatomic ,copy) NSString *key;//后台返回字段

@property (nonatomic ,assign) BOOL isSelection;//是否选择项

@property (nonatomic ,strong) NSArray <RHMeOptionTypeModel*> *optionList;

@property (nonatomic ,assign) BOOL isEdit;//是否编辑状态

@property (nonatomic ,assign) BOOL canEdit;//是否可编辑

@property (nonatomic ,assign) BOOL isRequired;//是否必填

@property (nonatomic ,strong) NSArray <RHMeSystemModel*>*plantSystems;

@property (nonatomic ,strong) NSArray <RHDeviceModel*>*deviceInfoList;

-(void)readInfo:(NSDictionary*)dic;
@end

NS_ASSUME_NONNULL_END
